import React from 'react';

const CategoryItem = ({ subCategory }) => {
  return (
    <div className="subcategory">
      <h3>{subCategory.categoryName}</h3>
      <img src={subCategory.imageUrl} alt={subCategory.categoryName} className="subcategory-image" />
    </div>
  );
};

export default CategoryItem;
